#  Lindsay Ergenekan 
#  ergenekl@onid.oregonstate.edu
#  CS311-400
#  Homework6
#
#  $RCSfile$
#  $Revision$
#  $Author$
#  $Date$
#  $Log$
#

CC=gcc
DEBUG=-g
CFLAGS=$(DEBUG) -lm -lrt -pthread -Wall -std=c99 -Wshadow -Wunreachable-code -Wmissing-declarations -Wold-style-definition -Wmissing-prototypes -Wdeclaration-after-statement
PROGS= primePThread primeMProc

all: $(PROGS)

primePThread: primePThread.o
	$(CC) $(CFLAGS) -o primePThread primePThread.o hw5.h  

primePThread.o: primePThread.c
	$(CC) $(CFLAGS) -c primePThread.c 

primeMProc: primeMProc.o
	$(CC) $(CFLAGS) -o primeMProc primeMProc.o hw5.h  

primeMProc.o: primeMProc.c
	$(CC) $(CFLAGS) -c primeMProc.c 

clean:
	rm -f $(PROGS) *.o *~

